<%@ include file="lib.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" language="javascript" src="../js/ajax.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<a href="?action=new">Add</a>
	<p>
	<div id="htmldata">
	<table border="1">
		<c:forEach var="data" items="${datalist}">
			<tr>
				<td><c:out value="${data.key}"></c:out></td>
				<td><c:out value="${data.id}"></c:out></td>
				<td><c:out value="${data.name}"></c:out></td>
				<td><img src="<c:out value="${data.image_Url}"></c:out>" /></td>
				<td><c:out value="${data.delete}"></c:out></td>
				<td><a
					href="JavaScript:ajax('?action=delete&key=${data.key}','htmldata')">Delete
				</a></td>
				<td><a
					href='?action=edit&key=<c:out value="${data.key}"></c:out>'>Edit
				</a></td>
				
			</tr>
		</c:forEach>
	</table>
</div>
</body>
</html>